package jsyf.oa.entity.returnVisit;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * Created by 92852 on 2018/6/27.
 */
@Entity
@Table(name = "T_SYS_RETURN_VISIT", schema = "oa", catalog = "")
public class ReturnVisitEntity extends BaseEntity {
    private String createUserId;
    private String userId;
    private String responsibleId;
    private String responsibleName;
    private String remark;
    private String jobTraining;
    private Integer jobTrainingStatu;
    private String productTraining;
    private Integer productTrainingStatu;
    private String companyPolicy;
    private Integer companyPolicyStatu;
    private String backstageManagement;
    private Integer backstageManagementStatu;
    private String supportMatters;
    private Integer supportMattersStatu;
    private String directLeadership;
    private Integer directLeadershipStatu;
    private Integer workIssuesStatu;
    private Integer groupVisitStatu;
    private String reasonLeaving;
    private String costSettlement;
    private String workHandover;
    private String workHandoverStatu;
    private String remainingProblem;
    private Integer remainingProblemStatu;
    private String processingProgress;
    private Integer status;

    public String getCreateUserId() {
        return createUserId;
    }

    public void setCreateUserId(String createUserId) {
        this.createUserId = createUserId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getResponsibleId() {
        return responsibleId;
    }

    public void setResponsibleId(String responsibleId) {
        this.responsibleId = responsibleId;
    }

    public String getResponsibleName() {
        return responsibleName;
    }

    public void setResponsibleName(String responsibleName) {
        this.responsibleName = responsibleName;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getJobTraining() {
        return jobTraining;
    }

    public void setJobTraining(String jobTraining) {
        this.jobTraining = jobTraining;
    }

    public String getProductTraining() {
        return productTraining;
    }

    public void setProductTraining(String productTraining) {
        this.productTraining = productTraining;
    }

    public String getCompanyPolicy() {
        return companyPolicy;
    }

    public void setCompanyPolicy(String companyPolicy) {
        this.companyPolicy = companyPolicy;
    }

    public String getBackstageManagement() {
        return backstageManagement;
    }

    public void setBackstageManagement(String backstageManagement) {
        this.backstageManagement = backstageManagement;
    }

    public String getSupportMatters() {
        return supportMatters;
    }

    public void setSupportMatters(String supportMatters) {
        this.supportMatters = supportMatters;
    }

    public String getDirectLeadership() {
        return directLeadership;
    }

    public void setDirectLeadership(String directLeadership) {
        this.directLeadership = directLeadership;
    }

    public String getReasonLeaving() {
        return reasonLeaving;
    }

    public void setReasonLeaving(String reasonLeaving) {
        this.reasonLeaving = reasonLeaving;
    }

    public String getCostSettlement() {
        return costSettlement;
    }

    public void setCostSettlement(String costSettlement) {
        this.costSettlement = costSettlement;
    }

    public String getWorkHandover() {
        return workHandover;
    }

    public void setWorkHandover(String workHandover) {
        this.workHandover = workHandover;
    }

    public String getRemainingProblem() {
        return remainingProblem;
    }

    public void setRemainingProblem(String remainingProblem) {
        this.remainingProblem = remainingProblem;
    }

    public String getProcessingProgress() {
        return processingProgress;
    }

    public void setProcessingProgress(String processingProgress) {
        this.processingProgress = processingProgress;
    }

    public Integer getJobTrainingStatu() {
        return jobTrainingStatu;
    }

    public void setJobTrainingStatu(Integer jobTrainingStatu) {
        this.jobTrainingStatu = jobTrainingStatu;
    }

    public Integer getProductTrainingStatu() {
        return productTrainingStatu;
    }

    public void setProductTrainingStatu(Integer productTrainingStatu) {
        this.productTrainingStatu = productTrainingStatu;
    }

    public Integer getCompanyPolicyStatu() {
        return companyPolicyStatu;
    }

    public void setCompanyPolicyStatu(Integer companyPolicyStatu) {
        this.companyPolicyStatu = companyPolicyStatu;
    }

    public Integer getBackstageManagementStatu() {
        return backstageManagementStatu;
    }

    public void setBackstageManagementStatu(Integer backstageManagementStatu) {
        this.backstageManagementStatu = backstageManagementStatu;
    }

    public Integer getSupportMattersStatu() {
        return supportMattersStatu;
    }

    public void setSupportMattersStatu(Integer supportMattersStatu) {
        this.supportMattersStatu = supportMattersStatu;
    }

    public Integer getDirectLeadershipStatu() {
        return directLeadershipStatu;
    }

    public void setDirectLeadershipStatu(Integer directLeadershipStatu) {
        this.directLeadershipStatu = directLeadershipStatu;
    }

    public Integer getWorkIssuesStatu() {
        return workIssuesStatu;
    }

    public void setWorkIssuesStatu(Integer workIssuesStatu) {
        this.workIssuesStatu = workIssuesStatu;
    }

    public Integer getGroupVisitStatu() {
        return groupVisitStatu;
    }

    public void setGroupVisitStatu(Integer groupVisitStatu) {
        this.groupVisitStatu = groupVisitStatu;
    }

    public Integer getRemainingProblemStatu() {
        return remainingProblemStatu;
    }

    public void setRemainingProblemStatu(Integer remainingProblemStatu) {
        this.remainingProblemStatu = remainingProblemStatu;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getWorkHandoverStatu() {
        return workHandoverStatu;
    }

    public void setWorkHandoverStatu(String workHandoverStatu) {
        this.workHandoverStatu = workHandoverStatu;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", getId());
        obj.put("CREATE_TIME", getCreateTime());
        obj.put("CREATE_USER_ID",getCreateUserId());
        obj.put("USER_ID",getUserId());
        obj.put("RESPONSIBLE_ID",getResponsibleId());
        obj.put("RESPONSIBLE_NAME",getResponsibleName());
        obj.put("REMARK",getRemark());
        obj.put("JOB_TRAINING",getJobTraining());
        obj.put("JOB_TRAINING_STATU",getJobTrainingStatu());
        obj.put("PRODUCT_TRAINING",getProductTraining());
        obj.put("PRODUCT_TRAINING_STATU",getProductTrainingStatu());
        obj.put("COMPANY_POLICY", getCompanyPolicy());
        obj.put("COMPANY_POLICY_STATU", getCompanyPolicyStatu());
        obj.put("BACKSTAGE_MANAGEMENT",getBackstageManagement());
        obj.put("BACKSTAGE_MANAGEMENT_STATU",getBackstageManagementStatu());
        obj.put("SUPPORT_MATTERS",getSupportMatters());
        obj.put("SUPPORT_MATTERS_STATU",getSupportMattersStatu());
        obj.put("DIRECT_LEADERSHIP",getDirectLeadership());
        obj.put("DIRECT_LEADERSHIP_STATU",getDirectLeadershipStatu());
        obj.put("WORK_ISSUES_STATU",getWorkIssuesStatu());
        obj.put("REASON_LEAVING",getReasonLeaving());
        obj.put("COST_SETTLEMENT",getCostSettlement());
        obj.put("WORK_HANDOVER_STATU",getWorkHandoverStatu());
        obj.put("WORK_HANDOVER",getWorkHandover());
        obj.put("REMAINING_PROBLEM",getRemainingProblem());
        obj.put("REMAINING_PROBLEM_STATU",getRemainingProblemStatu());
        obj.put("PROCESSING_PROGRESS",getProcessingProgress());
        obj.put("STATUS",getStatus());
        return obj;
    }
    @Override
    public String getTableName() {
        return "T_SYS_RETURN_VISIT";
    }
    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("CREATE_TIME", "createTime");
        obj.put("CREATE_USER_ID", "createUserId");
        obj.put("USER_ID", "userId");
        obj.put("RESPONSIBLE_ID", "responsibleId");
        obj.put("RESPONSIBLE_NAME", "responsibleName");
        obj.put("REMARK", "remark");
        obj.put("JOB_TRAINING", "jobTraining");
        obj.put("JOB_TRAINING_STATU", "jobTrainingStatu");
        obj.put("PRODUCT_TRAINING", "productTraining");
        obj.put("PRODUCT_TRAINING_STATU", "productTrainingStatu");
        obj.put("COMPANY_POLICY", "companyPolicy");
        obj.put("COMPANY_POLICY_STATU", "companyPolicyStatu");
        obj.put("BACKSTAGE_MANAGEMENT", "backstageManagement");
        obj.put("BACKSTAGE_MANAGEMENT_STATU", "backstageManagementStatu");
        obj.put("SUPPORT_MATTERS", "supportMatters");
        obj.put("SUPPORT_MATTERS_STATU", "supportMattersStatu");
        obj.put("DIRECT_LEADERSHIP", "directLeadership");
        obj.put("DIRECT_LEADERSHIP_STATU", "directLeadershipStatu");
        obj.put("WORK_ISSUES_STATU", "workIssuesStatu");
        obj.put("REASON_LEAVING", "reasonLeaving");
        obj.put("COST_SETTLEMENT", "costSettlement");
        obj.put("WORK_HANDOVER", "workHandover");
        obj.put("WORK_HANDOVER_STATU", "workHandoverStatu");
        obj.put("REMAINING_PROBLEM", "remainingProblem");
        obj.put("REMAINING_PROBLEM_STATU", "remainingProblemStatu");
        obj.put("PROCESSING_PROGRESS", "processingProgress");
        obj.put("STATUS", "status");
        return obj;
    }
}
